<table class="form_table" cellpadding="0" cellspacing="0" style="border-top: 0px;">
  <caption style="border-bottom: 0px;">
    <%= "#{Term.human_name}" %>
  </caption>
  <tr>
    <th><%= "#{Term.human_attribute_name(:name)}" %></th>
    <th><%= "#{Term.human_attribute_name(:duration)}" %></th>
    <th></th>
    <th></th>
    <th></th>
  </tr>
  <% @terms.each do |term| %>
    <tr class="<%= cycle('odd', 'even') %>">
      <td class="<%= current_cycle %>"><%= term.name %></td>
      <td class="<%= current_cycle %>" style="text-align: center;">
        <%= term.duration != 1 ? "#{term.duration} #{term.time_unit.plural}" : "#{term.duration} #{term.time_unit.name}" %>
      </td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:show), term %> ]</td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:edit), edit_term_path(term) %> ]</td>
      <td class="<%= current_cycle %>">[ <%= link_to t(:delete), term, :confirm => t(:prompt_delete_x, :x => term.name), :method => :delete %> ]</td>
    </tr>
  <% end %>
</table>